-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] Projections: Retain embedding if non-relevant variables change #3428
Conversation
8c14d66
to
ced1ca9
Compare
Codecov Report
@@ Coverage Diff @@
## master #3428 +/- ##
==========================================
- Coverage 83.17% 83.17% -0.01%
==========================================
Files 362 362
Lines 63832 63857 +25
==========================================
+ Hits 53094 53110 +16
- Misses 10738 10747 +9 |
ced1ca9
to
34e0a2f
Compare
# Input | ||
@Inputs.data | ||
@check_sql_input | ||
def set_data(self, data): | ||
same_domain = (self.data and data and | ||
data_exists = self.data is not None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data_existed
@@ -552,8 +573,6 @@ def sizeHint(self): | |||
return QSize(1132, 708) | |||
|
|||
def clear(self): | |||
self.data = None | |||
self.valid_data = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do this in inherited check_data
.
Orange/widgets/unsupervised/owmds.py
Outdated
self.graph.set_effective_matrix(None) | ||
self.__set_update_loop(None) | ||
self.__state = OWMDS.Waiting | ||
|
||
def _initialize(self): | ||
matrix_exists = self.effective_matrix is not None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
existed
Orange/widgets/unsupervised/owmds.py
Outdated
|
||
def clear(self): | ||
def clear(self, with_attr_values=True): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove flag, call init_attr_values
instead
34e0a2f
to
b6c23c2
Compare
b6c23c2
to
1a519d7
Compare
Issue
Embedding was recalculated and the graph reploted even though the variables used remain the same with new input data.
Description of changes
Adjust OWDataProjectionWidget not to recalculate the embedding.
Consider MDS separately since it takes two inputs (DataTable, DistMatrix).
Fix OWRadViz and OWLinearProjection not to plot data until available features list box is set.
Includes